#include "Scene.h"

Scene::Scene(){
        obstacleList      = new Lista<Obstacle>;
};

Scene::~Scene(){
        delete obstacleList;
}

Lista<Obstacle>* Scene::getObstacleList(){
        return obstacleList;
}


void Scene::draw(bool showCover) {          //Dibuja todos los obstaculos de la lista
        if(!obstacleList->vacia()) {
                obstacleList->inicia();
                for(int i = 0; i < obstacleList->getLongitud();i++){
                   obstacleList->getActual()->draw();
                   if (showCover)
                           obstacleList->getActual()->drawCover(5);
                   obstacleList->avanza();
                }

        }
}

